<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <title><%= title %> - 贵族美甲</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen"> 
    <link href="/css/jquery-ui.css" rel="stylesheet" media="screen"> 
    <link href="/css/starter-template.css" rel="stylesheet"> 
    <script data-main="/js/main" src="/js/require.js"></script>
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="../../assets/js/html5shiv.js"></script>
      <script src="../../assets/js/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
     <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="/">贵族美甲</a>
        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href="/">首页</a></li>
          <% if (!user) { %>
            <li><a href="/login">登录</a></li>
            <li><a href="/reg">注册</a></li>
          <% } else { %>
            <li><a href='javascript:;'>欢迎您,<%= user.name%></a></li>
            <li><a href="/logout">退出</a></li>
          <% } %>
            <li><a href="/user/query">会员管理</a></li>
            <li><a href="/topup/query">充值记录</a></li>
            <li><a href="/artist">美甲师管理</a></li>
            <li><a href="/project">项目管理</a></li>
            <li><a href="/serial/query">流水管理</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>  

    <div id="wrap" class="container">

      <% if (success && success.length > 0) { %>
        <div class="alert alert-success">
          <%= success %>
        </div>
      <% } %>

      <% if (error && error.length > 0) { %>
        <div class="alert alert-warning">
          <%= error %>
        </div>
      <% } %>

      <%- body %>
      <hr />
      
    </div>

    <footer class="container">
      <p class="text-muted"><a href="javascript:;"> For LaiJie  </a> 2014</p>
    </footer>
  </body>
</html>
